<?php
class Block_Role_Admin_View_Sidebar_Button
    extends Block_Core_Form_Sidebar_Button
{
    public function __construct()
    {
        parent::__construct();
        $this->setTitle('Management');
    }

    protected function _prepareBlock()
    {
        $object = new Object();
        $data = array('label'=>'Save','title'=>'Save Item','onclick'=>$this->getJsName().'.setFormAction(\''.$this->getUrl('admin/role/save/').'\')');
        $object->setData($data);
        $this->addButton('save',$object);

        $object = new Object();
        $data = array('label'=>'Save and Continue Edit','title'=>'Save Item and Continue Edit','onclick'=>$this->getJsName().'.setFormAction(\''.$this->getUrl('admin/role/save/continue/1').'\')');
        $object->setData($data);
        $this->addButton('continue',$object);

        $object = new Object();
        $data = array('label'=>'Back','title'=>'Back','onclick'=>$this->getJsName().'.setFormAction(\''.$this->getUrl('admin/role/index').'\')');
        $object->setData($data);
        $this->addButton('back',$object);

        return parent::_prepareBlock();
    }
}